home *** CD-ROM | disk | FTP | other *** search
/ Cinema Studio: Frank Herrmann / Cinema Studio - Frank Herrmann.iso / tools / pbm / manuals / pgmtopbm.man < prev    next >
Text File  |  1994-03-01  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4.      pgmtopbm(1)           AMIGA (26 July 1988)            pgmtopbm(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.           pgmtopbm - convert a portable graymap into a portable bitmap
  10.  
  11.      SYNOPSIS
  12.           pgmtopbm [-floyd|-fs|-threshold |-hilbert |-dither8|-d8|-
  13.           cluster3 |-c3|-cluster4|-c4 |-cluster8|-c8] [-value val] [-
  14.           clump size] [pgmfile]
  15.  
  16.      DESCRIPTION
  17.           Reads a portable graymap as input.  Produces a portable
  18.           bitmap as output.
  19.  
  20.           Note that there is no pbmtopgm converter, because any pgm
  21.           program can read pbm files automagically.
  22.  
  23.      OPTIONS
  24.           The default quantization method is boustrophedonic Floyd-
  25.           Steinberg error diffusion (-floyd or -fs).  Also available
  26.           are simple thresholding (-threshold); Bayer's ordered dither
  27.           (-dither8) with a 16x16 matrix; and three different sizes of
  28.           45-degree clustered-dot dither (-cluster3, -cluster4, -
  29.           cluster8).  A space filling curve halftoning method using
  30.           the Hilbert curve is also available.  (-hilbert);
  31.  
  32.           Floyd-Steinberg will almost always give the best looking
  33.           results; however, looking good is not always what you want.
  34.           For instance, thresholding can be used in a pipeline with
  35.           the pnmconvol tool, for tasks like edge and peak detection.
  36.           And clustered-dot dithering gives a newspaper-ish look, a
  37.           useful special effect.
  38.  
  39.           The -value flag alters the thresholding value for Floyd-
  40.           Steinberg and simple thresholding.  It should be a real
  41.           number between 0 and 1.  Above 0.5 means darker images;
  42.           below 0.5 means lighter.
  43.  
  44.           The Hilbert curve method is useful for processing images
  45.           before display on devices that do not render individual
  46.           pixels distinctly (like laser printers). This dithering
  47.           method can give better results than the dithering usually
  48.           done by the laser printers themselves.  The -clump flag
  49.           alters the number of pixels in a clump. This is usually an
  50.           integer between 2 and 100 (default 5). Smaller clump sizes
  51.           smear the image less and are less grainy, but seem to loose
  52.           some grey scale linearity. Typically a PGM image will have
  53.           to be scaled to fit on a laser printer page (2400 x 3000
  54.           pixels for an A4 300 dpi page), and then dithered to a PBM
  55.           image before being converted to a postscript file.  A
  56.           printing pipeline might look something like:  pnmscale
  57.           -xysize 2400 3000 image.pgm | pgmtopbm -hil | pnmtops -scale
  58.           0.25 > image.ps
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 3/1/94)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      pgmtopbm(1)           AMIGA (26 July 1988)            pgmtopbm(1)
  71.  
  72.  
  73.  
  74.           All flags can be abbreviated to their shortest unique
  75.           prefix.
  76.  
  77.      REFERENCES
  78.           The only reference you need for this stuff is "Digital
  79.           Halftoning" by Robert Ulichney, MIT Press, ISBN 0-262-
  80.           21009-6.
  81.  
  82.           The Hilbert curve space filling method is taken from
  83.           "Digital Halftoning with Space Filling Curves" by Luiz
  84.           Velho, Computer Graphics Volume 25, Number 4, proceedings of
  85.           SIGRAPH '91, page 81. ISBN 0-89791-436-8
  86.  
  87.      SEE ALSO
  88.           pbmreduce(1), pgm(5), pbm(5), pnmconvol(1), pnmscale(1),
  89.           pnmtops(1)
  90.  
  91.      AUTHOR
  92.           Copyright (C) 1989 by Jef Poskanzer.
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                           (printed 3/1/94)
  130.  
  131.  
  132.  
  133.